package common.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import common.config.datasource.DataSourceConstants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper接口
 *
 * @author 米泽鹏
 * @since 2022-03-22
 */
@Mapper
public interface CommonMapper {

	@DS(DataSourceConstants.INFORMATION_SCHEMA_DATASOURCE)
	List<String> getAllTableName(@Param("database") String database);

	int updateOperator(@Param("tableName") String tableName, @Param("oldOperator") String oldOperator, @Param("newOperator") String newOperator);

}
